package com.yidu.hbatsft.dao;

import com.yidu.hbatsft.domain.AtsBaseSport;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface AtsBaseSportMapper {

    int deleteByPrimaryKey(Integer sportId);

    int insert(AtsBaseSport record);

    int insertSelective(AtsBaseSport record);

    AtsBaseSport selectByPrimaryKey(Integer sportId);

    int updateByPrimaryKeySelective(AtsBaseSport record);

    int updateByPrimaryKey(AtsBaseSport record);

    /**
     * 查询所有体育项目的名称和id
     * @return 结果集
     */
    List<AtsBaseSport> selAllSportNmae();
    /**
     * 根据ID查询
     */
    AtsBaseSport findById(Integer id);

    List<AtsBaseSport> selectAll();

    int updateId(Integer sportId);

    AtsBaseSport findId(Integer sportId);

    List<AtsBaseSport> findNamePage(String name ,Integer pageNum,Integer pageSize);
    List<AtsBaseSport> findName(String name);


    AtsBaseSport selSportNmaeLX(Integer sportId);

}